#!/usr/bin/env python
# -*- coding:utf-8 -*-
from django import forms

class LoginForm(forms.Form):
    username = forms.CharField(
        widget=forms.widgets.TextInput(attrs={'class': "form-control", "placeholder":"用户名"})
    )
    password = forms.CharField(
        widget=forms.widgets.PasswordInput(attrs={'class': "form-control", "placeholder":"密码"})
    )

class AddForm(forms.Form):
    #下面是用户输入数据的表格
    ip =  forms.CharField(
        widget=forms.widgets.TextInput(attrs={'class': "form-control", "placeholder":"IP"})
    )
    port =  forms.CharField(
        widget=forms.widgets.TextInput(attrs={'class': "form-control", "placeholder":"PORT"})
    )
    zhuangtai =  forms.CharField(
        widget=forms.widgets.TextInput(attrs={'class': "form-control", "placeholder":"ZHUANGTAI"})
    )
    yewu =  forms.CharField(
        widget=forms.widgets.TextInput(attrs={'class': "form-control", "placeholder":"YEWU"})
    )